package io;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Scanner;

public class BioClient {

    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 9999);

        OutputStream outputStream = socket.getOutputStream();

        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNext()) {
            outputStream.write(scanner.nextLine().getBytes());
        }

        outputStream.close();


    }
}
